home *** CD-ROM | disk | FTP | other *** search
-
- /* Generated by Interface Builder */
-
- #import "IFontSetField.h"
- #import <appkit/FontManager.h>
- #import <appkit/Font.h>
-
- @implementation IFontSetField
-
- - openFontPanel:sender
- {
- [self selectText:self];
- [oFontManager orderFrontFontPanel:self];
- return self;
- }
-
- - changeFont:sender
- {
- id fontObj;
- char buf[256];
-
- fontObj = [oFontManager convertFont:[oFontManager selFont]];
- sprintf(buf, "%.127s:%.0f", [fontObj name], [fontObj pointSize]);
- [self setStringValue:buf];
- [self selectText:self];
-
- return self;
- }
-
- @end
-